package apigenerator.facade;

import apigenerator.dto.BookResponseDTO;
import apigenerator.dto.TradeBookRequestDTO;

import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;

/**
 * 交易核心流程接口
 * @author jjy30439
 * @version Id: TradeCoreFacade, v 0.1 2017/2/16 19:39 jjy30439 Exp $
 */
@Path("trade")
public interface PayFacade {

    /**
     * 预订下单新接口
     * @param bookRequestDTO 入参
     * @return BookResponseDTO
     */
    @POST
    @Consumes({ "application/json; charset=UTF-8" })
    @Produces({ "application/json; charset=UTF-8" })
    @Path("book") BookResponseDTO book(TradeBookRequestDTO bookRequestDTO);

    @POST
    @Consumes({ "application/json; charset=UTF-8" })
    @Produces({ "application/json; charset=UTF-8" })
    @Path("bindBoxBook")
    BookResponseDTO bindBoxBook(TradeBookRequestDTO bookRequestDTO);




}
